cmake_minimum_required(VERSION 4.0)
project(libdxgidup)

set(CMAKE_CXX_STANDARD 17)

# 添加编译选项以正确处理UTF-8编码
if(MSVC)
    add_compile_options(/utf-8)
endif()

add_library(libdxgidup SHARED dxgi_dup.cpp)

add_executable(test_performance test_performance.cpp)
target_link_libraries(test_performance libdxgidup)